<template>
  <div class="heZi">
    <div class="box" v-for="(item,index) in data" :key="index">
      <div class="t">{{item.xq}}{{item.m}}-{{item.d}}</div>
      <div class="b">bottom</div>
    </div>
  </div>
</template>

<script>
import formatDate from "@/util.js";
export default {
  data() {
    return {
      data: [
        formatDate(0),
        formatDate(1),
        formatDate(2),
        formatDate(3),
        formatDate(4),
        formatDate(5),
        formatDate(6),
      ],
    };
  },
  mounted() {
    console.log(this.data);
  },
};
</script>

<style lang="scss" scoped>
.box {
  width: 130px;
  height: 60px;
  border: 1px solid #666;
  text-align: center;
  border-radius: 10px;
  display: inline-block;
}
.heZi{
  overflow: hidden;
  width: 500px;
  white-space: nowrap;
  overflow-x: scroll;
}
::-webkit-scrollbar {

width:12px;

}

/* 滚动槽 */

::-webkit-scrollbar-track {

-webkit-box-shadow:inset006pxrgba(0,0,0,0.3);

border-radius:10px;

}

/* 滚动条滑块 */

::-webkit-scrollbar-thumb {

border-radius:10px;

background:rgba(0,0,0,0.1);

-webkit-box-shadow:inset006pxrgba(0,0,0,0.5);

}

::-webkit-scrollbar-thumb:window-inactive {

background:rgba(255,0,0,0.4);

}
</style>